package com.zbs.framework.dao.user.entity;


import com.zbs.framework.dao.base.BaseEntity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 用户角色关系
 */

@Entity
@Table(name = "mnt_user_role")
@Getter
@Setter
@NoArgsConstructor
public class UserRole extends BaseEntity {

    private Long userId;// 用户ID
    private Integer roleId;// 权限角色ID

    public UserRole(Long userId, Integer roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }
}
